package com.sharedlease.Feign;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sharedlease.entity.R;
import com.sharedlease.entity.Product;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Repository
public interface ProductClient extends BaseMapper<Product> {
    public Product getProductById(@PathVariable Long id);
    public List<Product> getProductList();
    public R saveProduct(@RequestBody Product product);
    public R deleteProductById(@RequestBody Product product);
    public R updateProductById(@RequestBody Product product);
}
